package com.jvtd.baseProject.ui.main.home;


import android.databinding.DataBindingUtil;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jvtd.baseProject.R;
import com.jvtd.baseProject.base.BaseMvpFragment;
import com.jvtd.baseProject.databinding.FragmentHomeBinding;
import com.jvtd.baseProject.databinding.JvtdFragmentHomeBinding;

public class HomeFragment extends BaseMvpFragment {
    private FragmentHomeBinding mBinding;

    public static HomeFragment newInstance() {
        return new HomeFragment();
    }

    @Override
    protected void initInject() {
        getFragmentComponent().inject(this);
    }

    @Override
    protected View getLayout(LayoutInflater inflater, @Nullable ViewGroup container) {
        mBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false);
        return mBinding.getRoot();
    }

    @Override
    protected void initViewAndData() {
        initToolbar();
    }

    private void initToolbar() {
        setToolbar(mBinding.toolBar.toolBar,false);
    }
}
